Skip to content

feat(px-datasource): Always make sure that there is a contents variable #378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 28, 2025

Conversation

likp
Copy link
Contributor

@likp likp commented May 26, 2025

No description provided.

likp added 3 commits May 26, 2025 16:28
Updated the `BuildForSelection` method to enhance the management of content variables. Added error handling and localization for the content variable's name based on the metadata's language. The method now creates a content variable if it doesn't exist, sets its properties, and adds it to the metadata's variables and stub. Additionally, it updates the content variable's name and value for all languages, ensuring proper localization. Renamed the return value from `retVAlue` to `result` for clarity.
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
19.4% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@likp likp changed the title Always make sure that there is a contents variable feat(px-datasource): Always make sure that there is a contents variable May 27, 2025
@likp likp marked this pull request as ready for review May 27, 2025 14:45
Copy link
Contributor

@MikaelNordberg MikaelNordberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@likp likp merged commit bcbe0bc into main May 28, 2025
11 of 12 checks passed
@likp likp deleted the feature/alway-content-variable branch May 28, 2025 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants